$(document).ready(function(){
	var queryAreaListUrl = adminQueryUrl + areaService;
	console.log('queryAreaListUrl='+queryAreaListUrl);
	var param = "action=queryListPage";
	var token = $.zui.store.get("token");
	var userId = $.zui.store.get("userId");
	$('#areaDataGrid').datagrid({
	    dataSource: {
	        cols:[
	            {name: 'areaCode', label: '地区编码', width: 132},
	            {name: 'areaName', label: '地区名称', width: 134},
	            {name: 'areaParentName', label: '上级地区名称', width: 109},
	            {name: 'sortNo', label: '排序码', width: 109},
	            {name: 'description', label: '描述', width: -1}
	        ],
	        array:[
	            {areaCode: '350000', areaName:'福建省', areaParentName: '中国', sortNo: 15, description: '好地方'},
	        ],
	        states: {
	            pager: {page: 1, recPerPage: 20}
	        }
	
			/*,
	        remote: function(params) {
	            return {
	                // 原创请求地址
	                url: queryAreaListUrl,
	                // 请求类型
	                type: 'get',
	                beforeSend:function(xhr){
	                	xhr.setRequestHeader("token", token);
	                	xhr.setRequestHeader("userId", userId);
	                },
	                header:{"token":token,"userId":userId},
	                // 数据类型
	                dataType: 'json',
	                data:param
	            };
	        }*/
	    }
	});
});